import java.io.DataInputStream;
import java.io.DataOutputStream;

import lejos.nxt.comm.BTConnection;
import lejos.nxt.comm.Bluetooth;

public class ConnectorNXT {
	
	private BTConnection connection;
	private DataInputStream dis = null;
	private DataOutputStream dos = null;
	
	public ConnectorNXT() {
		
	}
	
	public void waitForConnection() {
		connection = Bluetooth.waitForConnection();
		
		dis = connection.openDataInputStream();
		dos = connection.openDataOutputStream();
	}
	
	public DataInputStream getDIS() {
		return dis;
	}
	
	public DataOutputStream getDOS() {
		return dos;
	}
	
	
	
}
